package cn.qyl.joha.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.qyl.joha.common.PageModel;
import cn.qyl.joha.dto.Timlimited;


/**
 * 限时抢购商品mapper接口
 * @author Administrator
 *
 */

public interface TimeMapper {
	
	//限时抢购商品总记录数mapper接口
	int getCountByTime(Timlimited time);
	//限时抢购商品分页mapper接口
	List<Timlimited> getTime(@Param("time")Timlimited time, @Param("pageModel")PageModel pageModel);
	//删除限时抢购商品mapper接口
	int delTimeById(int id);
	//批量删除限时抢购商品mapper接口
	int delTimeByTids(int[] tids);
	//新增限时抢购商品mapper接口
	void addTime(Timlimited time);
	//获取限时抢购商品列表mapper接口
	List<Map<String,String>> getTimeList();
	//根据id获取限时抢购商品mapper接口
	Timlimited updateTimeById(int id);
	//修改限时抢购商品信息mapper接口
	int updateTime(Timlimited time);

	



}
